<?php
$state  = $_GET['state'];
// START -- MySQL Settings
include('config.php');
// END -- MySQL Settings

// MySQL Server Connection
mysql_connect($host,$username,$password);
mysql_select_db($database);

$result = mysql_query("SELECT Preis_".$state." FROM produkte");

while($row = mysql_fetch_array($result)){
	 echo( $row["Preis_".$state].";" );
}
?>